package com.guli.statistics.client;

import com.guli.common.vo.R;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author XiaoHua666
 * @date 2019/4/22
 */

@Component
@FeignClient("guli-ucenter")
public interface UcenterClient {
    /**
     * 注意：一定要写成 @PathVariable("day")，圆括号中的"day"不能少
     * @param day
     * @return
     */
    @GetMapping("/admin/ucenter/member/count-register/{day}")
    R registerCount(@ApiParam(value = "统计日期", name = "day", example = "2019-01-01")
                           @PathVariable("day") String day);
}
